package com.example.jw_web.Mapper;

import com.example.jw_web.pojo.Wait_member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface AddOursDao {

//    @Insert("INSERT INTO wait_member (name, gender, class_name, phone, place, hobby, description, date)" +
//            "VALUES ( #{name}, #{gender}, #{className}, #{phone}, #{place}, #{hobbyString}, #{description}, #{date})")
//    void saveMembers(Wait_member wait_member, @Param("hobbyString") String hobbyString);
@Insert("INSERT INTO wait_member (name, gender, class_name, phone, place, hobby, description, date)" +
        "VALUES (#{wait_member.name}, #{wait_member.gender}, #{wait_member.className}, #{wait_member.phone}, " +
        "#{wait_member.place}, #{hobbyString}, #{wait_member.description}, #{wait_member.date})")
void saveMembers(@Param("wait_member") Wait_member wait_member, @Param("hobbyString") String hobbyString);

}
